Sorting multidimensional array on inner value php [duplicate]

Posted by Silver89 on Stack Overflow See other posts from Stack Overflow or by Silver89
Published on 2014-08-19T16:08:24Z Indexed on 2014/08/19 16:20 UTC
Read the original article Hit count: 169

This question already has an answer here:

Say I have the following array, how can I sort it on sort_by?

Array
(
    [10] => Array
        (
            [Masthead_slide] => Array
                (
                    [id] => 1456464564
                    [sort_by] => 1
                )

        )

    [6] => Array
        (
            [Masthead_slide] => Array
                (
                    [id] => 645454
                    [sort_by] => 10
                )

        )

    [7] => Array
        (
            [Masthead_slide] => Array
                (
                    [id] => 4547
                    [sort_by] => 5
                )

        )
)

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays